package org.popupcommunication.utils;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.context.ApplicationListener;
import org.springframework.security.authentication.event.AuthenticationFailureBadCredentialsEvent;


public class AuthentificationListener implements ApplicationListener<AuthenticationFailureBadCredentialsEvent>{
	private static Log LOG = LogFactory.getLog(AuthentificationListener.class);

	@Override
	public void onApplicationEvent(AuthenticationFailureBadCredentialsEvent arg0) {
		// TODO Bad log management
		System.out.println("gerer le nombre de mauvaises connections...");
		LOG.warn("erreur log");		
	}
	
}

